import { configureStore } from "@reduxjs/toolkit";

import userSlice from "@/pages/login/slice";
import appSlice from "./appSlice";
import categorySlice from "@/app/slices/categorySlice"

export const store = configureStore({
  reducer: {
    user: userSlice,//用户
    app: appSlice,//语言
    category:categorySlice,//分类数据
  },
});

export type AppDispatch = typeof store.dispatch;
export type RootState = ReturnType<typeof store.getState>;
